home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8771 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 62 6c | 61 63 6b 2e 77 65 65 67 |Path: bl|ack.weeg|
|00000010| 2e 75 69 6f 77 61 2e 65 | 64 75 21 72 6f 62 69 6e |.uiowa.e|du!robin|
|00000020| 73 6f 6e 0a 46 72 6f 6d | 3a 20 54 68 65 20 41 6d |son.From|: The Am|
|00000030| 6f 72 70 68 6f 75 73 20 | 4d 61 73 73 20 3c 72 6f |orphous |Mass <ro|
|00000040| 62 69 6e 73 6f 6e 40 62 | 6c 75 65 2e 77 65 65 67 |binson@b|lue.weeg|
|00000050| 2e 75 69 6f 77 61 2e 65 | 64 75 3e 0a 4e 65 77 73 |.uiowa.e|du>.News|
|00000060| 67 72 6f 75 70 73 3a 20 | 63 6f 6d 70 2e 6c 61 6e |groups: |comp.lan|
|00000070| 67 2e 63 0a 53 75 62 6a | 65 63 74 3a 20 52 65 3a |g.c.Subj|ect: Re:|
|00000080| 20 48 65 6c 70 20 77 69 | 74 68 20 73 69 6e 28 29 | Help wi|th sin()|
|00000090| 20 2d 20 62 69 67 20 70 | 72 6f 62 6c 65 6d 0a 44 | - big p|roblem.D|
|000000a0| 61 74 65 3a 20 57 65 64 | 2c 20 36 20 4d 61 72 20 |ate: Wed|, 6 Mar |
|000000b0| 31 39 39 36 20 30 30 3a | 32 30 3a 32 31 20 2d 30 |1996 00:|20:21 -0|
|000000c0| 36 30 30 0a 4f 72 67 61 | 6e 69 7a 61 74 69 6f 6e |600.Orga|nization|
|000000d0| 3a 20 55 6e 69 76 65 72 | 73 69 74 79 20 6f 66 20 |: Univer|sity of |
|000000e0| 49 6f 77 61 2c 20 49 6f | 77 61 20 43 69 74 79 2c |Iowa, Io|wa City,|
|000000f0| 20 49 41 2c 20 55 53 41 | 0a 44 69 73 74 72 69 62 | IA, USA|.Distrib|
|00000100| 75 74 69 6f 6e 3a 20 77 | 6f 72 6c 64 0a 4d 65 73 |ution: w|orld.Mes|
|00000110| 73 61 67 65 2d 49 44 3a | 20 3c 50 69 6e 65 2e 41 |sage-ID:| <Pine.A|
|00000120| 33 32 2e 33 2e 39 31 2e | 39 36 30 33 30 36 30 30 |32.3.91.|96030600|
|00000130| 31 36 34 39 2e 32 30 36 | 37 31 34 42 2d 31 30 30 |1649.206|714B-100|
|00000140| 30 30 30 40 62 6c 61 63 | 6b 2e 77 65 65 67 2e 75 |000@blac|k.weeg.u|
|00000150| 69 6f 77 61 2e 65 64 75 | 3e 0a 52 65 66 65 72 65 |iowa.edu|>.Refere|
|00000160| 6e 63 65 73 3a 20 3c 34 | 68 68 75 73 69 24 34 39 |nces: <4|hhusi$49|
|00000170| 69 40 73 75 6e 62 75 72 | 73 74 2e 63 63 73 2e 79 |i@sunbur|st.ccs.y|
|00000180| 6f 72 6b 75 2e 63 61 3e | 0a 4e 4e 54 50 2d 50 6f |orku.ca>|.NNTP-Po|
|00000190| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 62 6c 61 63 |sting-Ho|st: blac|
|000001a0| 6b 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |k.weeg.u|iowa.edu|
|000001b0| 0a 4d 69 6d 65 2d 56 65 | 72 73 69 6f 6e 3a 20 31 |.Mime-Ve|rsion: 1|
|000001c0| 2e 30 0a 43 6f 6e 74 65 | 6e 74 2d 54 79 70 65 3a |.0.Conte|nt-Type:|
|000001d0| 20 54 45 58 54 2f 50 4c | 41 49 4e 3b 20 63 68 61 | TEXT/PL|AIN; cha|
|000001e0| 72 73 65 74 3d 55 53 2d | 41 53 43 49 49 0a 58 2d |rset=US-|ASCII.X-|
|000001f0| 53 65 6e 64 65 72 3a 20 | 72 6f 62 69 6e 73 6f 6e |Sender: |robinson|
|00000200| 40 62 6c 61 63 6b 2e 77 | 65 65 67 2e 75 69 6f 77 |@black.w|eeg.uiow|
|00000210| 61 2e 65 64 75 0a 49 6e | 2d 52 65 70 6c 79 2d 54 |a.edu.In|-Reply-T|
|00000220| 6f 3a 20 3c 34 68 68 75 | 73 69 24 34 39 69 40 73 |o: <4hhu|si$49i@s|
|00000230| 75 6e 62 75 72 73 74 2e | 63 63 73 2e 79 6f 72 6b |unburst.|ccs.york|
|00000240| 75 2e 63 61 3e 20 0a 0a | 4f 6e 20 35 20 4d 61 72 |u.ca> ..|On 5 Mar|
|00000250| 20 31 39 39 36 2c 20 4e | 61 66 74 61 6c 69 20 53 | 1996, N|aftali S|
|00000260| 74 75 72 6d 20 77 72 6f | 74 65 3a 0a 0a 3e 20 20 |turm wro|te:..> |
|00000270| 54 68 65 20 70 72 6f 62 | 6c 65 6d 20 69 73 20 74 |The prob|lem is t|
|00000280| 68 61 74 20 77 68 65 6e | 20 6e 75 6d 62 20 69 73 |hat when| numb is|
|00000290| 20 31 2e 30 2c 20 74 68 | 65 0a 3e 20 70 72 6f 67 | 1.0, th|e.> prog|
|000002a0| 72 61 6d 20 67 69 76 65 | 73 20 6d 65 20 2e 38 34 |ram give|s me .84|
|000002b0| 31 34 37 20 2c 20 61 6e | 64 20 77 68 65 6e 20 6e |147 , an|d when n|
|000002c0| 75 6d 62 20 69 73 20 34 | 35 2e 30 20 0a 3e 20 74 |umb is 4|5.0 .> t|
|000002d0| 68 65 20 70 72 6f 67 72 | 61 6d 20 67 69 76 65 73 |he progr|am gives|
|000002e0| 20 6d 65 20 2e 38 35 30 | 39 30 2c 20 61 6e 64 20 | me .850|90, and |
|000002f0| 65 61 63 68 20 6e 75 6d | 62 65 72 20 69 73 20 61 |each num|ber is a|
|00000300| 20 64 69 66 66 65 72 65 | 6e 74 20 72 65 73 75 6c | differe|nt resul|
|00000310| 74 2e 0a 3e 20 48 6f 77 | 65 76 65 72 20 49 20 74 |t..> How|ever I t|
|00000320| 6f 6f 6b 20 61 20 6c 6f | 6f 6b 20 61 74 20 6d 79 |ook a lo|ok at my|
|00000330| 20 73 69 6e 65 20 74 61 | 62 6c 65 20 69 6e 20 6d | sine ta|ble in m|
|00000340| 79 20 74 72 69 67 6f 6e | 6f 6d 65 74 72 79 20 62 |y trigon|ometry b|
|00000350| 6f 6f 6b 2c 20 61 6e 64 | 0a 3e 20 69 74 20 73 61 |ook, and|.> it sa|
|00000360| 79 73 20 74 68 65 20 73 | 69 6e 65 20 6f 66 20 31 |ys the s|ine of 1|
|00000370| 20 69 73 20 2e 30 31 38 | 2c 20 74 68 65 20 73 69 | is .018|, the si|
|00000380| 6e 65 20 6f 66 20 34 35 | 20 69 73 20 2e 37 30 37 |ne of 45| is .707|
|00000390| 2c 20 61 6e 64 0a 3e 20 | 64 69 66 66 65 72 65 6e |, and.> |differen|
|000003a0| 74 20 72 65 73 75 6c 74 | 73 20 74 68 61 6e 20 77 |t result|s than w|
|000003b0| 68 61 74 20 6d 79 20 70 | 72 6f 67 72 61 6d 20 73 |hat my p|rogram s|
|000003c0| 61 69 64 2e 0a 3e 20 20 | 20 57 68 79 3f 0a 0a 20 |aid..> | Why?.. |
|000003d0| 20 42 65 63 61 75 73 65 | 20 73 69 6e 28 29 2c 20 | Because| sin(), |
|000003e0| 6c 69 6b 65 20 61 6c 6c | 20 74 68 65 20 6f 74 68 |like all| the oth|
|000003f0| 65 72 20 74 72 69 67 20 | 66 75 6e 63 74 69 6f 6e |er trig |function|
|00000400| 73 20 69 6e 20 3c 6d 61 | 74 68 2e 68 3e 2c 20 65 |s in <ma|th.h>, e|
|00000410| 78 70 65 63 74 73 20 0a | 69 74 73 20 61 72 67 75 |xpects .|its argu|
|00000420| 6d 65 6e 74 73 20 28 61 | 6e 64 20 72 65 74 75 72 |ments (a|nd retur|
|00000430| 6e 73 20 69 74 73 20 72 | 65 73 75 6c 74 29 20 69 |ns its r|esult) i|
|00000440| 6e 20 5f 72 61 64 69 61 | 6e 73 5f 2c 20 6e 6f 74 |n _radia|ns_, not|
|00000450| 20 64 65 67 72 65 65 73 | 2e 0a 0a 20 20 46 75 72 | degrees|... Fur|
|00000460| 74 68 65 72 6d 6f 72 65 | 2c 20 74 68 65 79 20 65 |thermore|, they e|
|00000470| 78 70 65 63 74 20 28 61 | 6e 64 20 72 65 74 75 72 |xpect (a|nd retur|
|00000480| 6e 29 20 64 6f 75 62 6c | 65 73 2c 20 6e 6f 74 20 |n) doubl|es, not |
|00000490| 66 6c 6f 61 74 73 2c 20 | 73 6f 20 79 6f 75 20 6d |floats, |so you m|
|000004a0| 69 67 68 74 20 0a 63 6f | 6e 73 69 64 65 72 20 63 |ight .co|nsider c|
|000004b0| 68 61 6e 67 69 6e 67 20 | 6e 75 6d 62 20 61 6e 64 |hanging |numb and|
|000004c0| 20 72 65 73 75 6c 74 20 | 74 6f 20 74 79 70 65 20 | result |to type |
|000004d0| 64 6f 75 62 6c 65 2e 20 | 20 49 74 27 73 20 6e 6f |double. | It's no|
|000004e0| 74 20 61 62 73 6f 6c 75 | 74 65 6c 79 20 0a 6e 65 |t absolu|tely .ne|
|000004f0| 63 65 73 73 61 72 79 2c | 20 62 75 74 20 49 20 63 |cessary,| but I c|
|00000500| 61 6e 27 74 20 69 6d 61 | 67 69 6e 65 20 74 68 61 |an't ima|gine tha|
|00000510| 74 20 6d 6f 72 65 20 70 | 72 65 63 69 73 69 6f 6e |t more p|recision|
|00000520| 20 77 6f 75 6c 64 20 68 | 75 72 74 2e 0a 0a 20 2d | would h|urt... -|
|00000530| 2d 4a 61 6d 65 73 20 52 | 6f 62 69 6e 73 6f 6e 20 |-James R|obinson |
|00000540| 28 72 6f 62 69 6e 73 6f | 6e 40 63 73 2e 75 69 6f |(robinso|n@cs.uio|
|00000550| 77 61 2e 65 64 75 20 2d | 6f 72 2d 20 6a 61 6d 65 |wa.edu -|or- jame|
|00000560| 73 2d 72 6f 62 69 6e 73 | 6f 6e 40 75 69 6f 77 61 |s-robins|on@uiowa|
|00000570| 2e 65 64 75 29 0a 2f 2a | 20 20 20 49 6e 64 65 65 |.edu)./*| Indee|
|00000580| 64 2c 20 43 2b 2b 20 69 | 73 20 61 20 62 69 74 20 |d, C++ i|s a bit |
|00000590| 6f 66 20 61 6e 20 6f 64 | 64 62 61 6c 6c 20 6f 66 |of an od|dball of|
|000005a0| 20 61 20 6c 61 6e 67 75 | 61 67 65 20 2e 2e 2e 20 | a langu|age ... |
|000005b0| 67 69 76 65 6e 20 74 68 | 65 20 77 61 79 20 74 68 |given th|e way th|
|000005c0| 61 74 20 2a 0a 20 2a 20 | 69 74 20 72 65 71 75 69 |at *. * |it requi|
|000005d0| 72 65 73 20 70 72 69 76 | 61 74 65 20 70 61 72 74 |res priv|ate part|
|000005e0| 73 20 74 6f 20 62 65 20 | 76 69 73 69 62 6c 65 2e |s to be |visible.|
|000005f0| 20 20 54 68 69 73 20 69 | 6e 63 72 65 61 73 65 73 | This i|ncreases|
|00000600| 20 74 68 65 20 73 74 72 | 65 6e 67 74 68 20 6f 66 | the str|ength of|
|00000610| 20 20 2a 0a 20 2a 20 63 | 6f 75 70 6c 69 6e 67 20 | *. * c|oupling |
|00000620| 64 72 61 6d 61 74 69 63 | 61 6c 6c 79 2e 2e 2e 20 |dramatic|ally... |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000640| 20 20 20 20 20 20 2d 2d | 20 44 72 2e 20 52 69 63 | --| Dr. Ric|
|00000650| 68 20 41 72 74 79 6d 20 | 20 20 20 20 20 20 20 20 |h Artym | |
|00000660| 20 2a 2f 0a | | */. | |
+--------+-------------------------+-------------------------+--------+--------+